
<template>
  <mu-paper :z-depth="1" class="lan-loadmore-body">
    <mu-appbar color="primary" class="lan-header">
      <mu-button icon slot="left" v-close>
        <i class="iconfont angle-left iconangle-left"></i>
        <span class="lan-header-back">返回</span>
      </mu-button>详情
      <mu-button icon slot="right" >
        <!-- <mu-icon value="more"></mu-icon> -->
        <!-- <i class="iconfont iconshaixuan4"></i> -->
      </mu-button>
    </mu-appbar>
    <mu-container ref="container" class="lan-loadmore-content no-padding">
     <accountDetaildf :problemId="problemId"  :operType="type" style="height:auto;"></accountDetaildf>
     <!-- 没有模板暂时不做 -->
     <!-- <div class="opeatLine">
       <mu-button small color="primary">生成整改单</mu-button>
     </div> -->
    </mu-container>
  </mu-paper>
</template>

<script>
import accountDetaildf from "../../QualityModule/parameter/account/accountDetaildf"
export default {
  name: "list",
  components: {
    accountDetaildf
  },
  data() {
    return {
      problemId:'',
      rectId:'',
      lineInfo:'',
      userOpen:false,
      type: ''
    };
  },
  async created() {
    // this.getData(this.form);
    // this.projectList = await this.$A.comData("projectList");
    this.lineInfo = JSON.parse(sessionStorage.getItem('reviewListDetail') || null)
    this.type = this.$route.query.type
    if(this.type == 'rect') {
      this.problemId = this.lineInfo.problemId
    }else{
      this.problemId = this.lineInfo.problemId
    }

  },
  beforeDestroy(){
    sessionStorage.removeItem('reviewListDetail')
  },
  methods: {
    async getData(params) {
      this.$openLoading();
      let obj = {
        // obj: {
        "orgId":this.$A.GS('orgInfo')['orgId'],
        "type":this.$A.GS('orgInfo')['type'],
        // },
        current: this.pageNo,
        size: this.pageSize
      };
      // if (params) {
      //   Object.assign(obj, params);
      // }
      this.$A.Go('get','/safety/checkProblem/pageList',obj).then(success=>{
          if(success.code == 200){
          }

          this.$closeLoading();
        },
        function(err) {
          console.warn(err);
        }
      );
    },

    goDetail(list) {

      this.$router.push({path:'/accountDetaildf',query:{info:list.problemId}});
    },
  }
};
</script>

<style lang="scss" scoped>
.img-box {
  img {
    width: 80px;
    height: 80px;
    float: left;
    margin: 5px 8px;
  }
}
.lan-form-title {
  line-height: 40px;
}
.opeatLine{
  padding:0.1rem 0.2rem;
  text-align: center;
}
</style>
